package org.ccams.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		System.out.print(getOrderNo());
	}

	public static String getOrderNo() {
		long No = 0;
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
		String nowdate = sdf.format(new Date());
		No = Long.parseLong(nowdate) * 1000;//这里如果一天订单多的话可以用一万或更大
		No += getNo();
		return getUserId() + No;
	}

	public static int getNo() {//返回当天的订单数+1
		return 001;
	}

	public static String getUserId() {
		return "123";
	}

}
